import Person.Administrator;
import Person.Normal;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("选择权限  1.图书管理  2.普通");
        int choice = scan.nextInt();
        scan.nextLine();
        System.out.println("请输入姓名： ");
        String name = scan.nextLine();
        if(choice == 1){
            Administrator administrator = new Administrator(name);
            administrator.menu();
        }else if(choice == 2){
            Normal normal = new Normal(name);
            normal.menu();
        }
    }
}